<script type="text/javascript" src="/library/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">

$(document).ready(function() {

	$(function() { $("#common-publish_date").datepicker(); });
	$(function() { $("#common-expiration_date").datepicker(); });

	tinyMCE.init({
		mode : "textareas",	
		theme : "advanced",
		width : "400",
		height : "300",
		plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
		editor_selector : "mceAdvanced",
		theme_advanced_toolbar_location : "top",
		theme_advanced_resizing : true,
		//Example content CSS (should be your site CSS)
		content_css : "css/example.css",
		template_external_list_url : "js/template_list.js",
		external_link_list_url : "js/link_list.js",
		external_image_list_url : "js/image_list.js",
		media_external_list_url : "js/media_list.js",
		// Replace values for the template plugin

		template_replace_values : {
		username : "Some User",
		staffid : "991234"

		}

	});

});
</script>              
<h2><a href="#">Noticias</a> &raquo; <a href="#" class="active">Nueva noticia</a></h2>
<div id="main">
		<fieldset>
			<form action="<?=$this->form->getAction()?>" method="<?=$this->form->getMethod()?>" enctype="multipart/form-data">
				<div class="formSeparator">
					<h3>Datos Comunes a todos los idiomas</h3>
				</div>
				<div class="subForm">	
				    <?=$this->form->getSubForm("common") ?>
				</div>
				 <?foreach ( $this->langs as $l ):?>
					<div class="formSeparator">
						<h3><img width="20" src="/upload/lang/<?=$l['image'] ?>"/> <?=$l['name']?></h3>
					</div>
					<div class="subForm">	
					<?=$this->form->getSubForm($l['prefix2'])?>
					</div>
				 <?endforeach;?>

				 <?= $this->form->getElement("add") ?>
			</form>
        </fieldset>
	</div>
<div class="clear"></div>
